﻿/*CREATE TRIGGER [dbo].[BoletinesUsuarios_DeletionTrigger] 
    ON [BoletinesUsuarios] 
    AFTER DELETE 
AS 
SET NOCOUNT ON 
UPDATE [dbo].[BoletinesUsuarios_Tombstone] 
    SET [DeletionDate] = GETUTCDATE() 
    FROM deleted 
    WHERE deleted.[BoletinGuid] = [BoletinesUsuarios_Tombstone].[BoletinGuid] 
IF @@ROWCOUNT = 0 
BEGIN 
    INSERT INTO [dbo].[BoletinesUsuarios_Tombstone] 
    ([BoletinGuid], DeletionDate)
    SELECT [BoletinGuid], GETUTCDATE()
    FROM deleted 
END*/